package com.tyut.system.service.impl;


import com.tyut.system.domain.TyutStudent;
import com.tyut.system.mapper.TyutStudentMapper;
import com.tyut.system.service.ITyutStudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 实验室学生信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-20
 */
@Service
public class TyutStudentServiceImpl implements ITyutStudentService
{
    @Autowired
    private TyutStudentMapper tyutStudentMapper;

    /**
     * 查询实验室学生信息
     * 
     * @param id 实验室学生信息主键
     * @return 实验室学生信息
     */
    @Override
    public TyutStudent selectTyutStudentById(Long id)
    {
        return tyutStudentMapper.selectTyutStudentById(id);
    }

    /**
     * 查询实验室学生信息列表
     * 
     * @param tyutStudent 实验室学生信息
     * @return 实验室学生信息
     */
    @Override
    public List<TyutStudent> selectTyutStudentList(TyutStudent tyutStudent)
    {
        return tyutStudentMapper.selectTyutStudentList(tyutStudent);
    }

    /**
     * 新增实验室学生信息
     * 
     * @param tyutStudent 实验室学生信息
     * @return 结果
     */
    @Override
    public int insertTyutStudent(TyutStudent tyutStudent)
    {
        return tyutStudentMapper.insertTyutStudent(tyutStudent);
    }

    /**
     * 修改实验室学生信息
     * 
     * @param tyutStudent 实验室学生信息
     * @return 结果
     */
    @Override
    public int updateTyutStudent(TyutStudent tyutStudent)
    {
        return tyutStudentMapper.updateTyutStudent(tyutStudent);
    }

    /**
     * 批量删除实验室学生信息
     * 
     * @param ids 需要删除的实验室学生信息主键
     * @return 结果
     */
    @Override
    public int deleteTyutStudentByIds(Long[] ids)
    {
        return tyutStudentMapper.deleteTyutStudentByIds(ids);
    }

    /**
     * 删除实验室学生信息信息
     * 
     * @param id 实验室学生信息主键
     * @return 结果
     */
    @Override
    public int deleteTyutStudentById(Long id)
    {
        return tyutStudentMapper.deleteTyutStudentById(id);
    }
}
